@import "mixin/marchen";

//*---------------------------------------------------------------------------------------*/
//*  start your less code from here
//*---------------------------------------------------------------------------------------*/
html {
  font-size: 10px;
  min-width: 980px;
  font-family: "苹方","冬青黑体","微软雅黑", "黑体",sans-serif;
}
.original-submission {
  @inputWidth: 80%;
  .main-content {
    color: @site-sub-title-color;
    .line {
      width: 100%;
      height: 1px;
      background-color: @site-border-color;
      margin:  15px 0;
    }
    .button-add {
      cursor: pointer;
      &.special {
        margin-bottom: 80px;
      }
      .btn-lvha();
      cursor: pointer;
      width: 26px;
      height: 26px;
      text-align: center;
      border: 1px solid @site-border-color;
      border-radius: 3px;
    }
    .button-btn {
      .btn-lvha();
      cursor: pointer;
      display: inline-block;
      margin-right: 15px;
      border-radius: 4px;
      text-align: center;
      border: 1px solid @site-border-color;
      padding: 2px 0;
      width: 100px;
      background-color: white;
      position: relative;
      input {
        cursor: pointer;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: block;
        opacity: 0;
      }
    }
    .textarea-input {
      display: block;
      margin: 10px 0;
      padding: 10px;
      min-height: 100px;
      width: @inputWidth;
      border: 1px solid @site-border-color;
      font-size: 1.3rem;
    }
    .original-from {
       font-size: 1.6rem;
       margin: 0;
    }
    .cate-label {
      margin-left: 15px;
      margin-right: 5px;
    }
    .cate-select {
      border: 1px solid @site-border-color;
      border-radius: 5px;
      width: 100px;
      font-size: 1.5rem;
      option {
        font-size: 1.5rem;
      }
    }
    .title {
      margin: 20px 0 10px;
    }
    .title-input {
      width: @inputWidth;
      padding: 2px 10px;
      border: 1px solid @site-border-color;
    }
    .autor-box {
      display: inline-block;
      padding-left: 45px;
      width: 26%;
      position: relative;
    }
    .autor {
      position: absolute;
      left: 0;
      top: 3px;
    }
    .hidden-box {
      display: inline-block;
      width: 10%;
      margin: 0 2%;
      @media screen and (max-width: 1160px) {
        margin: 0 1%;
        width: 11%;
      }
    }
    .email-box {
      position: relative;
      display: inline-block;
      width: 40%;
      padding-left: 77px;
    }
    .autor-input {
      border: 1px solid @site-border-color;
      padding: 2px 10px;
      display: block;
      width: 100%;
    }
    .hidden-input {
      margin-left: 15px;
    }
    .email {
      position: absolute;
      left: 0;
      top: 3px;
    }
    .email-input {
      display: block;
      width: 100%;
      border: 1px solid @site-border-color;
      padding: 2px 10px;
    }
  }
  .original-banner {
    background: url("@{images}person-banner.jpg") no-repeat center center transparent;
    .banner-text {
      max-width: @site-width;
      margin: 0 auto;
      font-size: 2rem;
      color: white;
      padding: 40px 20px;
    }
  }
}

.person {
  .banner {
    height: 286px;
    padding-top: 70px;
    background: url("@{images}person-banner.jpg") no-repeat center center transparent;
    .banner-content {
      max-width: @site-width;
      padding: 10px @site-whitespace;
      margin: 0 auto;
      .left-content {
        float: left;
        position: relative;
        padding-left: 160px;
        font-size: 2rem;
        .head {
          position: absolute;
          left: 0;
          top: 0;
        }
        .sex {
          margin-left: 10px;
        }
        // 我的原创居中
        .my-name {
          margin-top: 15px;
          color: white;
          font-size: 3rem;
          vertical-align: middle;
        }
        .name-text {
          &:hover {
            color: white;
          }
        }
        .name {
          color: white;
          font-size: 3rem;
          vertical-align: middle;
        }
        .info {
          color: white;
          margin-top: @margin-top;
        }
      }
      .follow {
        margin-top: @margin-top;
        font-size: 2rem;
        .f-btn {
          cursor: pointer;
          display: inline-block;
          padding: 0px 24px;
          border-radius: 5px;
          background-color: white;
          color: @site-black-color;
        }
        .follow-btn {
          margin-right: 20px;
        }
      }
      .my-follow {
        margin-top: 30px;
        text-align: center;
      }
      .right-content {
        width: 30%;
        float: right;
        text-align: center;
        .right-quote-box {
          text-align: center;
          display: inline-block;
          margin: 30px auto 0;
          position: relative;
        }
        .my-right-quote-box {
          margin-top: 0;
        }
        .icon-quote-left {
          position: absolute;
          left: -45px;
          top: 0;
          width: 24px;
          height: 16px;
          background: url("@{images}person-icon-left.png") no-repeat center center transparent;
        }
        .icon-quote-right {
          position: absolute;
          right: -45px;
          top: 0;
          width: 24px;
          height: 16px;
          background: url("@{images}person-icon-right.png") no-repeat center center transparent;
        }
        .quote {
          color: white;
          font-size: 2rem;
        }
        .score {
          font-size: 1.8rem;
          color: @site-text-color;
          margin-top: @margin-top;
        }
      }
    }
  }
  .main-content {
    max-width: @site-width;
    padding: @site-whitespace;
    background-color: white;
    margin: 0 auto;
    font-size: 2rem;
    .left-content {
      float: left;
      width: 65%;
      .item {
        &:hover .edit-btn,
        &:hover .delete-btn {
          display: block;
        }
        &:nth-child(1) {
          padding-top: 0;
        }
        position: relative;
        font-size: 2rem;
        border-bottom: 1px solid @site-border-color;
        padding: 50px 0;
        .figure {
          float: left;
          width: 45%;
          position: relative;
          img {
            width: 100%;
          }
          .link {
            &:hover {
              opacity: 0.9;
            }
            &:active {
              opacity: 1;
            }
            position: absolute;
            left: 15px;
            top: 15px;
            display: inline-block;
            padding: 5px 10px;
            color: white;
            border-radius: 3px;
            font-size: 1.3rem;
            opacity: 0.5;
            letter-spacing: 5px;
            background-color: rgb(0, 0, 0);
          }
        }
        .info {
          width: 45%;
          float: right;
          margin-right: 5%;
        }
        .title {
          max-height: 56px;
          color: @site-title-color;
          overflow: hidden;
          &:hover {
            color: @site-btn-hover-color;
          }
          @media screen and (max-width:@maxWidth) {
            font-size: 1.8rem;
          }
        }
        .sub-title {
          font-size: 1.8rem;
          max-height: 130px;
          line-height: 2.2rem;
          margin-top: 7%;
          color: @site-sub-title-color;
          overflow: hidden;
          @media screen and (max-width:@maxWidth) {
            font-size: 1.6rem;
            max-height: 110px;
            margin-top: 3%;
          }
        }
        .time {
          font-size: 1.5rem;
          color: @site-text-color;
          float: left;
          margin-right: 15px;
          @media screen and (max-width:@maxWidth) {
            font-size: 1.4rem;
          }
        }
        .edit-btn {
          &:hover {
            color: #4D7FC3;
          }
          display: none;
          color: #7b9bc6;
          font-size: 1.5rem;
          float: left;
          margin-right: 10px;
          @media screen and (max-width:@maxWidth) {
            font-size: 1.4rem;
          }
        }
        .delete-btn {
          &:hover {
            color: #C55A5A;
          }
          display: none;
          color: #c67b7b;
          font-size: 1.5rem;
          float: left;
          @media screen and (max-width:@maxWidth) {
            font-size: 1.4rem;
          }
        }
        .extra {
          width: 45%;
          position: absolute;
          right: 5%;
          bottom: 15%;
        }
        .comment {
          font-size: 1.5rem;
          float: right;
          .comment-btn {
            display: inline-block;
            padding-left: 26px;
            height: 23px;
            color: @site-text-color;
            line-height: 23px;
            background-repeat: no-repeat;
            background-position: left center;
          }
          .comment-icon {
            margin-right: 20px;
            background-image: url("@{images}person-comment.png");
          }
          .love-icon {
            background-image: url("@{images}person-love.png");
          }
        }
      }
    }
    .right-content {
      float: right;
      width: 30%;
    }
    .tab-box {
      display: inline-block;
      position: relative;
      text-align: center;
      padding-bottom: 20px;
      border-bottom: 7px solid transparent;
      .tab-name {
        &:hover {
          color: @site-title-color;
        }
        color: @site-text-color;
        margin-top: 5px;
      }
      .tab-number {
        position: relative;
        display: inline-block;
      }
      .tab-new-number {
        position: absolute;
        right: -22px;
        top: -2px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        z-index: 1;
        color: white;
        font-size: 1rem;
        border-radius: 50%;
        background-color: @site-wraing-color;
      }
    }
    .selected {
      border-bottom: 7px solid @site-blue-color;
      .tab-name {
        color: @site-title-color;
      }
    }
    .person-tab-left {
      margin-bottom: 40px;
      border-bottom: 1px solid @site-border-color;
      min-height: 88px;
      .tab-box {
        margin-left: 5%;
      }
      .tab-box:nth-child(1) {
        margin-left: 0;
      }
    }
    .person-tab-right {
      margin-bottom: 40px;
      border-bottom: 1px solid @site-border-color;
      text-align: center;
      min-height: 88px;
      .tab-box {
        margin: 0 10%;
      }
    }
    .banner-right {
      img {
        width: 100%;
      }
    }
    .right-title {
      color: @site-title-color;
      margin: 55px 0;
      font-size: 2rem;
    }
    .carousel {
      .carousel-box {
        overflow: hidden;
        width: 100%;
        .carousel-content {
          width: 2000px;
          position: relative;
          left: 0;
          top: 0;
          a.box {
            float: left;
            display: block;
            img {
              display: block;
              width: 100%;
            }
          }
        }
      }
      .carousel-controller {
        text-align: center;
        margin-top: 10px;
        .control-btn.selected {
          border: 1px solid @site-black-color;
        }
        .control-btn {
          cursor: pointer;
          display: inline-block;
          width: 10px;
          height: 10px;
          margin: 0 5px;
          border-radius: 50%;
          border: 1px solid @site-border-color;
        }
      }
    }
    .rank {
      background-color: @site-grey-color;
      position: relative;
      padding: 12px;
      .sign {
        width: 29px;
        height: 33px;
        position: absolute;
        right: 10px;
        top: 0;
        background: url("@{images}person-sign.png") no-repeat center center transparent;
      }
      .items:last-child {
        border: 0;
      }
      .items {
        &:hover {
          background-color: #E2E1E1;
        }
        display: block;
        padding: 15px 0;
        background-repeat: no-repeat;
        background-position: left center;
        border-bottom: 1px solid @site-border-color;
        .little-head {
          display: inline-block;
          vertical-align: middle;
          margin: 0 8% 0 22%;
          @media screen and (max-width:@maxWidth) {
            margin: 0 6% 0 22%;
            width: 60px;
            height: 60px;
          }
        }
        .info {
          display: inline-block;
          vertical-align: middle;
          font-size: 1.8rem;
          @media screen and (max-width:@maxWidth) {
            font-size: 1.5rem;
          }
          .name {
            color: @site-title-color;
          }
        }
        .like {
          color: #909090;
          margin-top: 5px;
          .icon-like {
            background-repeat: no-repeat;
            background-position: left center;
            padding-left: 22px;
            display: inline-block;
            font-size: 1.4rem;
          }
          .like-btn {
            background-image: url("@{images}person-like.png");
          }
          .collect-btn {
            margin-left: 7px;
            background-image: url("@{images}person-collect.png");
          }
        }
      }
      .items:nth-child(2) {
       background-image: url("@{images}person-one.png");
      }
      .items:nth-child(3) {
        background-image: url("@{images}person-two.png");
      }
      .items:nth-child(4) {
        background-image: url("@{images}person-three.png");
      }
      .items:nth-child(5) {
        background-image: url("@{images}person-four.png");
      }
      .items:nth-child(6) {
        background-image: url("@{images}person-five.png");
      }
    }
  }
  // 查看更多按钮
  .show-more-btn {
    .btn-lvha();
    display: block;
    font-size: 1.6rem;
    color: @site-sub-title-color;
    text-align: center;
    border-radius: 3px;
    background-color: white;
    border: 1px solid @site-border-color;
    padding: 15px 0;
    margin: 40px 0;
    letter-spacing: 0.2rem;
    @media screen and (max-width: @maxWidth) {
      font-size: 1.4rem;
    }
  }
  // 卡片布局
  .card-content {
    .card-box {
      &:nth-child(2n) {
        margin-left: 5%;
      }
      .title {
        font-size: 2rem;
        color: @site-title-color;
      }
      .sub-title {
        font-size: 1.5rem;
        color: #616161;
        margin: 10px 0;
      }
      width: 47.5%;
      float: left;
      margin-bottom: 5%;
      background-color: @site-grey-color;
      padding: 30px 0;
      .middle-head {
        width: 30%;
        display: inline-block;
        vertical-align: middle;
        text-align: left;
        img {
          width: 100%;
          padding: 0 15%;
        }
      }
      .info {
        width: 64%;
        padding-left: 6%;
        display: inline-block;
        vertical-align: middle;
        border-left: 2px solid @site-border-color;
        .quote-box {
          margin-bottom: 10px;
          position: relative;
          display: inline-block;
        }
        .icon-quote-left {
          position: absolute;
          left: 0;
          top: 0;
          width: 18px;
          height: 18px;
          background: url("@{images}person-icon-quote-left.png") no-repeat center center transparent;
        }
        .icon-quote-right {
          position: absolute;
          right: 0;
          top: 0;
          width: 18px;
          height: 18px;
          background: url("@{images}person-icon-quote-right.png") no-repeat center center transparent;
        }
        .quote-text {
          padding: 0 24px;
          text-align: center;
          color: #252525;
          font-size: 1.7rem;
        }
        .follow {
          display: inline-block;
          width: 130px;
          box-shadow: 0 0 2px @site-border-color;
          background-color: #ffffff;
          text-align: center;
          padding: 4px 0 8px 0;
          span {
            color: #252525;
            font-size: 1.6rem;
            vertical-align: middle;
            padding-left: 10px;
            display: inline-block;
          }
          .follow-icon {
            background-repeat: no-repeat;
            background-position: center center;
            width: 22px;
            height: 22px;
            display: inline-block;
            vertical-align: middle;
          }
          .add-icon {
            background-image: url("@{images}person-icon-add.png")
          }
          .added-icon {
            background-image: url("@{images}person-icon-added.png")
          }
          .change-icon {
            background-image: url("@{images}person-icon-change.png")
          }
        }
      }
    }
  }
  // 我的私信
  .letter-content {
    .letter-item {
      &:nth-child(1) {
        padding-top: 0;
      }
      padding: 25px 0;
      border-bottom: 1px solid @site-border-color;
      .letter-head {
        width: 10%;
        float: left;
        text-align: center;
        img {
          display: inline-block;
          width: 90%;
        }
      }
      .title {
        font-size: 1.8rem;
        color: @site-title-color;
      }
      .sub-title {
        padding: 15px 0 20px;
        font-size: 1.7rem;
        color: @site-grey-sub-title-color;
      }
      .letter-control-box {
        font-size: 1.5rem;
        .reply {
          display: inline-block;
          cursor: pointer;
          color: @site-text-color;
          span {
            vertical-align: middle;
          }
          .reply-btn {
            vertical-align: middle;
            display: inline-block;
            width: 28px;
            height: 19px;
            opacity: 0.4;
            background: url("@{images}person-reply.png") no-repeat center center transparent;
          }
        }
        .reply-btn-selected {
          color: @site-text-color-active;
          .reply-btn {
            opacity: 1;
          }
        }
        .letter-clear {
          display: inline-block;
          vertical-align: middle;
          margin: 0 @margin-top;
          color: @site-text-color;
        }
        .letter-readed {
          display: inline-block;
          vertical-align: middle;
          color: @site-text-color;
        }
        .letter-time {
          font-size: 1.6rem;
          float: right;
          display: inline-block;
          vertical-align: middle;
          color: @site-text-color;
        }
      }
      .reply-box {
        display: none;
        font-size: 1.6rem;
        position: relative;
        margin-top: @margin-top;
        textarea {
          width: 100%;
          padding: 10px;
          border: 1px solid #9b9b9b;
          min-height: 120px;
          display: block;
        }
        .reply-submit {
          position: absolute;
          right: 10px;
          bottom: 10px;
          padding: 3px 15px;
          color: white;
          background-color: #9b9b9b;
        }
      }
      .letter-info {
        width: 87%;
        margin-left: 2%;
        float: left;
      }
    }
    // 网友评论
    .time-comment {
      font-size: 1.6rem;
      text-align: right;
      color: @site-text-color;
      padding-top: @margin-top;
      @media screen and (max-width:@maxWidth) {
        font-size: 1.4rem;
      }
    }
    .letter-comment-item {
      background-color: #E0DFE0;
      padding: 15px 0;
      font-size: 1.7rem;
      position: relative;
      .figure {
        float: left;
        width: 25%;
        position: relative;
        margin-left: 5%;
        img {
          width: 100%;
        }
      }
      .info {
        width: 60%;
        float: right;
        margin-right: 5%;
      }
      .title-comment {
        color: @site-title-color;
        overflow: hidden;
        @media screen and (max-width:@maxWidth) {
          font-size: 1.8rem;
        }
      }
      .sub-title-comment {
        font-size: 1.8rem;
        max-height: 125px;
        margin-top: 7%;
        color: @site-sub-title-color;
        overflow: hidden;
        @media screen and (max-width:@maxWidth) {
          font-size: 1.6rem;
          max-height: 110px;
          margin-top: 3%;
        }
      }
      .extra {
        width: 45%;
        position: absolute;
        right: 5%;
        bottom: 15%;
      }
      .comment {
        font-size: 1.5rem;
        float: right;
        .comment-btn {
          display: inline-block;
          padding-left: 26px;
          height: 23px;
          color: white;
          line-height: 23px;
          background-repeat: no-repeat;
          background-position: left center;
        }
        .comment-icon {
          margin-right: 20px;
          background-image: url("@{images}person-comment-white.png");
        }
        .love-icon {
          background-image: url("@{images}person-love-white.png");
        }
      }
    }
  }
  // 发送私信弹窗
  #messageWrap {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.8);
    .placeholder {
      float: left;
      font-size: 1.6rem;
      color: @site-text-color;
      margin-left: 2px;
    }
    .close {
      cursor: pointer;
      float: right;
      font-size: 2rem;
    }
    .white-box {
      padding: 0.6rem 1rem;
      background-color: white;
    }
    .box {
      width: 700px;
      margin: 0 auto;
    }
    .message-box {
      display: table-cell;
      text-align: center;
      vertical-align: middle;
    }
    textarea {
      &:focus {
        outline: none;
      }
      resize: vertical;
      margin-top: 5px;
      font-size: 1.8rem;
      color: @site-title-color;
      width: 100%;
      min-height: 200px;
      display: block;
      border: none;
    }
    .register {
      text-align: right;
      font-size: 1.8rem;
      color: #D0D0D0;
      letter-spacing: 0.18rem;
      margin-top: 10px;
    }
    .register-btn {
      &:hover {
        color: @site-btn-hover-color;
      }
      color: white;
      margin: 0 20px 0 5px;
    }
    .send-message-btn {
      &:hover {
        background-color: @site-btn-active-color;
      }
      color: white;
      background-color: @site-btn-hover-color;
      padding: 2px 20px;
      border: none;
    }
  }
}
